from models.base import (
    BaseModel,
)
from items.ziniao_accounts import ZiniaoAccountsItem


class ZiniaoAccountsModel(BaseModel):
    ret_item = ZiniaoAccountsItem

    @property
    def unique_indexes(self):
        return ['platform']


ziniao_accounts_model = ZiniaoAccountsModel()


if __name__ == '__main__':
    ziniao_accounts_model.sync_insert_one(ZiniaoAccountsItem(
        platform="***",
        company="***",
        username="***",
        password="***"
    ))